package com.taxi.comm.business.service.M002;

import java.security.MessageDigest;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import org.apache.commons.codec.binary.Hex;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.taxi.comm.business.beans.CLZTZHMXB_BW;
import com.taxi.comm.business.mapper.CLZTZHMXB_BWMapper;



@Service
public class M002ServiceImpl  extends M002Service {

	private static final Logger log = LoggerFactory.getLogger(M002ServiceImpl.class);
	
	@Autowired
	private CLZTZHMXB_BWMapper  clztzhmxb_bw_Mapper;
	
	
	
	
	
	

	void signIn(M002Request request) throws Exception {
		CLZTZHMXB_BW clztzhmxb_bw=new CLZTZHMXB_BW();
		
		Date aDate = new Date(); 
		SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd"); 
		String formattedDate = formatter.format(aDate); 
		clztzhmxb_bw.setZXRQ(Integer.parseInt(formattedDate,10));
		clztzhmxb_bw.setZXLS(clztzhmxb_bw_Mapper.nextCLZTZHMXB_BWSeq());
		clztzhmxb_bw.setVer(request.Ver);
		clztzhmxb_bw.setBWLS(request.BWLS);
		
		clztzhmxb_bw.setQQBZ(request.QQBZ);
		clztzhmxb_bw.setYDDM(request.YDDM);
		clztzhmxb_bw.setFSF(request.FSF);
		clztzhmxb_bw.setJSF(request.JSF);
		clztzhmxb_bw.setSCSJ(request.SCSJ);
		clztzhmxb_bw.setBWXH(request.BWXH);
		clztzhmxb_bw.setXTMC(request.XTMC);
		

		
		clztzhmxb_bw.setBWLX(request.BWLX);
		clztzhmxb_bw.setSBHM(request.SBHM);
		clztzhmxb_bw.setCPH(request.CPH); 
		clztzhmxb_bw.setYYZH(request.YYZH);
		clztzhmxb_bw.setZYZH(request.ZYZH);
		clztzhmxb_bw.setSJXM(request.SJXM);
		clztzhmxb_bw.setCZGS(request.CZGS);
		clztzhmxb_bw.setBHDDWD(request.BHDDWD);
		clztzhmxb_bw.setBHDDJD(request.BHDDJD);
		clztzhmxb_bw.setBHSJ(request.BHSJ);
		clztzhmxb_bw.setBHQZT(request.BHQZT);  
		clztzhmxb_bw.setBHHZT(request.BHHZT);  
		clztzhmxb_bw.setBZ(request.BZ); 
		clztzhmxb_bw_Mapper.insert(clztzhmxb_bw);
	}

	
	
	
	public static void main(String[] args) {
		
		System.out.println(Integer.MAX_VALUE);
		
	}




	
	
}
